
/*

Stylesheet for printing Project Gutenberg ebooks using Prince http://www.princexml.com/

The CSS3 code used in this stylesheet will generate errors in the W3C CSS checker:
see http://www.w3.org/TR/css3-page/. For this reason, it should not be included in the
HTML versions posted to Project Gutenberg.

*/

/* ==== PAGE LAYOUT ==== */

@media print {

@page
{
    size: demy-octavo;
    margin: 27mm 16mm 27mm 16mm;

    @footnotes
    {
        padding-top: 8pt;
        margin: 0 10%;
    }

    counter-reset: footnote;
}

@page coverpage
{
    margin: 0;
    @top-left { content: normal }
    @top-right { content: normal }
    @bottom-left { content: normal }
    @bottom-center { content: normal }
    @bottom-right { content: normal }
}


@page titlepage
{
    @top-left { content: normal }
    @top-right { content: normal }
    @bottom-left { content: normal }
    @bottom-center { content: normal }
    @bottom-right { content: normal }
}


@page :left
{
    @bottom-left
    {
        content: counter(page);
        margin: 0 10%;
    }

    @top-left
    {
        content: string(header, first);
        font-style: italic;
        margin: 0 10%;
    }
}

@page :right
{
    @bottom-right
    {
        content: counter(page);
        margin: 0 10%;
    }

    @top-right
    {
        content: string(header, first);
        font-style: italic;
        margin: 0 10%;
    }
}


@page frontmatter :left
{
    @bottom-left
    {
        content: counter(page, lower-roman);
        margin: 0 10%;
    }
}

@page frontmatter :right
{
    @bottom-right
    {
        content: counter(page, lower-roman);
        margin: 0 10%;
    }
}


/* ==== DOCUMENT LEVEL FORMATTING ==== */

:root
{
    color: black;
    background: white;
    font-size: 10pt;
}

body
{
    margin: 0 10%;
    text-align: justify;
}

div.front
{
    page: frontmatter
}

div.body
{
    counter-reset: page 1;
}

div.titlePage
{
    page: titlepage;
    page-break-after: always;

    color: black;
    background: white;
    border: white 0px solid;
}

h1.docTitle
{
    string-set: doctitle content();
}


div.div1
{
    page-break-after: always;
}


h2.normal
{
    string-set: header content();
}


/* ==== FOOTNOTES ==== */

.displayfootnote
{
    display: prince-footnote;
    counter-increment: footnote;
    footnote-style-position: inside;

    font-size: 8pt;
    font-weight: normal;
    font-style: normal;
    text-indent: 1em;
    text-align: justify;
}

::footnote-marker
{
    footnote-style-position: inside;
}

::footnote-call
{
    content: counter(footnote);
    font-size: 83%;
    vertical-align: super;
    line-height: none;
}

.pseudonoteref              /* render references to footnotes similar to note markers */
{
    content: target-counter(attr(href), footnote);
    font-size: 83%;
    vertical-align: super;
    line-height: none;
}

/* Suppress display of generated endnotes in HTML */

div.footnotes
{
    display: none;          /* Suppress the display of the generated footnote sections */
}

.noteref
{
    display: none;          /* Suppress the display of the generated footnote numbers */
}

/* ==== LINKS ==== */

a:link, a:visited
{
    color: black;
    background: transparent;
    text-decoration: none;
}

/* ==== Paragraph indentations ==== */

/* Also use the .par class, as we do not use p in the HTML generated for Prince */

p, .par
{
    margin: 0;
    text-indent: 1em;
}

p.first, p.tocChapter, p.byline, .par.first, .par.tocChapter, .par.byline
{
    text-indent: 0em;
}

h1, h2, h3, h4, h5, h6
{
    color: black;
    text-align: left;
}

span.corr, span.abbr, span.measure, abbr
{
    border-bottom: 0px;
    text-decoration: none;
}

.transcribernote
{
    background-color: transparant;
    border: white 0pt solid;
    font-size: 7pt;
    line-height: 1.2em;
    margin: 0;
}

.figureHead, .noteref, .marginnote, p.legend, .versenum, .rightnote,  .pagenum, .linenum, .pagenum a
{
    color: black;
}

hr
{
    border: 0;
    color: black;
    background-color: black;
    height: 1px;
    width: 15%;
}

/* add margins to various text elements */
.lg, .lgouter, .epigraph, .argument, .table, .figure, .sp
{
    padding: 0;
    margin-top: 1.58em;
    margin-bottom: 1.58em;
}

/* ==== PAGE NUMBERS ==== */


a.pageref           /* Replace references with pagenumbers with actual pagenumbers */
{
    content: target-counter(attr(href), page);
}

.pagenum            /* Suppress marginal pagenumbers (using display: none will break references!) */
{
    visibility: hidden;
}

/* ==== PDF bookmarks ==== */

h1 { prince-bookmark-level: 1 }
h2 { prince-bookmark-level: 2 }
h3 { prince-bookmark-level: 3 }
h4 { prince-bookmark-level: 4 }
h5 { prince-bookmark-level: 5 }
h6 { prince-bookmark-level: 6 }

h1.label, h2.label, h3.label, h4.label, h5.label, h6.label
{
    prince-bookmark-level: none;
}

div.titlePage > h2
{
    prince-bookmark-level: none;
}


.pglink, .catlink, .exlink, .wplink, .biblink, .seclink
{
    background-image: none;
    padding-right: 0;
}

}